\documentclass[12pt]{article} %---include different packages----------- %\usepackage[dvips]{graphics} %\usepackage{color} \usepackage{graphicx} %\usepackage{latexsym} %\usepackage{amsfonts} %\usepackage{amssymb} %\usepackage{amsthm} %\input psfig.tex %----define page layout------------ %****************************newcommands********************* \newcommand{\be}{\begin{eqnarray}} \newcommand{\ee}{\end{eqnarray}} %****************************definitions********************* \def\title #1{\begin{center}{\Large {\bf #1}}\end{center}} \baselineskip=16pt \topmargin -1.5in \oddsidemargin -20 pt \evensidemargin -20 pt \setlength{\textheight}{750pt} \setlength{\textwidth}{450pt} %**************************begin document************************** \begin{document} \vspace*{4mm} \title{\LaTeX\, Examples: \\ Tables and Figures} \vspace*{10mm} Creating a table, such as Table~\ref{tb:tone}, is fairly straightforward and simply a matter of filling in pieces. %\begin{table} \begin{center} %\caption{\footnotesize This is the first Table.} \begin{tabular}{c|c|c|c}\hline \hline & $\phi$ & $\rho$ & $\alpha$ \\ \hline MLE & 0.520 & 0.425 & 0.348 \\ & (0.009) & (0.028) & (0.021) \\ & $<$ 0.001 & $<$ 0.001 & $<$ 0.001 \\ \hline QLS & 0.519 & 0.324 & 0.390 \\ & (0.009) & (0.042) & (0.021) \\ & $<$ 0.001 & $<$ 0.001 & $<$ 0.001 \\ \hline \end{tabular} \label{tb:tone} \end{center} %\end{table} It is important to note that writing in the ``Tabular'' setting is not friendly to mathematical expressions, and thus we must use (\$) as if we were writing in text. \newpage Like tables, figures are relatively easy to incorporate into a document, such as Figure~\ref{gr:figone}. One thing you should note is that you must turn on the ``Graphics'' package located in the preamble. Also note that the ``caption'' command gives Figure~\ref{gr:figone} a title. \begin{center} \begin{figure} \includegraphics[width=4.0in]{Figures/2areMLMOrho} \caption{Generic Graph} \label{gr:figone} \end{figure} \end{center} The figure will be automatically placed by \LaTeX. \end{document}